// react 中的路由配置
import React from "react"
import { Navigate } from "react-router-dom"

const Home = React.lazy(() => import('../views/home/Home.jsx'))
const More = React.lazy(() => import('../views/more/More.jsx'))

const routes = [
    {
      path: '/',
      element: <Navigate to="/home" />
    },
    {
      path: '/home',
      element: <Home />
    },
    {
      path: '/more',
      element: <More />
    }
]

export default routes